{%extends "base.xhtml"%}
{% load i18n %}
{% load ham %}

{%block content%}
<form method="post" action="{%href ""%}">
	<p>
		<label for="id_username">{%trans "Username"%}</label>
		{{ form.username }}
		{% if form.username.errors %}
		<span class="error">{{ form.slug.errors|join:", "}}</span>
		{% endif %}
	</p>
	<p>
		<label for="id_email">{%trans "E-mail"%}</label>
		{{ form.email }}
		{% if form.email.errors %}
		<span class="error">{{ form.email.errors|join:", "}}</span>
		{% endif %}
	</p>
	<p>
		<label for="id_first_name">{%trans "First name"%}</label>
		{{ form.first_name }}
		{% if form.first_name.errors %}
		<span class="error">{{ form.first_name.errors|join:", "}}</span>
		{% endif %}
	</p>
	<p>
		<label for="id_last_name">{%trans "Last name"%}</label>
		{{ form.last_name }}
		{% if form.last_name.errors %}
		<span class="error">{{ form.last_name.errors|join:", "}}</span>
		{% endif %}
	</p>
	<p>
		<label for="id_password">{%trans "Password"%}</label>
		{{ form.password }}
		{% if form.password.errors %}
		<span class="error">{{ form.password.errors|join:", "}}</span>
		{% endif %}
	</p>
	<p>
		<label for="id_passwordc">{%trans "Confirm password"%}</label>
		{{ form.passwordc }}
		{% if form.passwordc.errors %}
		<span class="error">{{ form.passwordc.errors|join:", "}}</span>
		{% endif %}
	</p>

	<input type="submit" value="{%trans "Register"%}"/>
</form>
{%endblock%}
